package com.zxy.springboot_goods.service.impl;

import com.zxy.springboot_goods.entity.City;
import com.zxy.springboot_goods.mapper.CityMapper;
import com.zxy.springboot_goods.service.ICityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lenovo
 * @since 2021-11-04
 */
@Service
public class CityServiceImpl extends ServiceImpl<CityMapper, City> implements ICityService {

    @Autowired
    private CityMapper cityMapper;
    @Override
    public List<City> getCity(int pid) {
        List<City> list = cityMapper.getCity(pid);
        return list;
    }
}
